﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.Common;
using System.Data.SqlClient;

namespace SampleWebsite.Mappers
{
    public abstract class DomainObjectMapper<T>
    {
        public T SelectById(int id)
        {
            object[] values = new object[0];
            return MapFromFieldValues(values);
        }

        public T Insert(T domainObject)
        {
            return domainObject;
        }

        public T Update(T domainObject)
        {
            return domainObject;
        }

        public void DeleteById(int id)
        {

        }

        protected abstract T MapFromFieldValues(object[] values);
    }
}
